<template>
	<view class="search">
		<view class="search-header">
			<view class="search-box u-flex">
				<view class="u-flex search-input">
				  <u-icon name="search" color="#9F9F9F" size="36"></u-icon>
				  <u-input placeholder="请输入关键字" style="padding-left:30rpx"></u-input>
				</view>
				  <view class="cancel-btn" @click="cancelSearch">取消</view>
			</view>
		</view>
		<view class="search-result">
			<!-- 好友 -->
				
			 <movable-area class="t-conversation-item-container note-section">
				<movable-view class="t-conversation-item" direction="horizontal" @click="$goPage('/note/group')"
					damping="100">
					<view class="u-flex">
					<view class="avatar-box">
						<image class="t-conversation-item-avatar" src="/static/images/avatar.jpg">
						</image>
					</view>
					<view class="t-conversation-item-content">
						<label class="tui-result-name">Abby</label>
					</view>
						</view>
						<u-icon name="arrow-right" size="40" color="#949C9E" style="margin-right: 24rpx"></u-icon>
				</movable-view>
			 </movable-area>
			<!-- 相关聊天记录 -->
			<view class="result-type">
				<view class="result-header"><text>6</text>条相关聊天记录</view>
				<view style="width:100%;height: 16rpx;background-color: #fff;"></view>
			 <movable-area class="t-conversation-item-container note-section" v-for="(item,index) in 3" :key="index">
				<movable-view class="t-conversation-item" direction="horizontal" @click="$goPage('/note/group')"
					damping="100">
					<view class="u-flex" style="width: 100%">
					<view class="avatar-box">
						<image class="t-conversation-item-avatar" src="/static/images/avatar.jpg">
						</image>
					</view>
					<view class="t-conversation-item-content-text">
					<view class="t-conversation-item-content">
						<view class="tui-result-name">Abby</view>
						<view class="message-time">
							昨天
						</view>
					
					</view>
						<view class="tui-result-message">生活还是很美<text style="color: #0089FF">好的</text></view>
					
						</view>
					</view>
				</movable-view>
			</movable-area>
			<movable-area class="t-conversation-item-container note-section" v-for="(item,index) in 3" :key="index">
				<movable-view class="t-conversation-item" direction="horizontal" @click="$goPage('/note/group')"
					damping="100">
					<view class="u-flex" style="width: 100%">
					<view class="avatar-box">
						<image class="t-conversation-item-avatar" src="/static/images/avatar.jpg">
						</image>
					</view>
					<view class="t-conversation-item-content-text">
					<view class="t-conversation-item-content">
						<view class="tui-result-name">Abby</view>
					<view class="message-time">
						昨天
					</view>
					</view>
						<view class="tui-result-message">哦<text style="color: #0089FF">好的</text></view>
					
						</view>
					</view>
				</movable-view>
			</movable-area>
			<view style="width:100%;height: 50rpx;background-color: #fff;"></view>
			</view>
		
		
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				keyword:''
			}
		},
		methods: {
			cancelSearch(){
				uni.navigateBack({
					
				})
		}
	},
	}
</script>

<style lang="scss" scoped>
.search {
		white-space: normal;
		word-break: break-all;
		margin-top: 60rpx;
	}
	.search-header {
		padding: 30rpx;
	}
	.search-box {
		justify-content: space-between;
	}
	.search-input {
		padding: 0 10rpx 0 20rpx;
		border-radius: 16rpx;
		background-color: #fff;
		flex:1;
		margin-left: 4rpx;
	}
	.cancel-btn {
		padding: 0 10rpx 0 28rpx;
		font-size: 32rpx;
	  font-family: Adobe Heiti Std;
	  font-weight: normal;
	  color: #3681C0;
	}
	.result-header {
		font-size: 28rpx;
		font-family: Adobe Heiti Std;
		font-weight: normal;
		color: #8D8D8D;
		padding: 20rpx 0 20rpx 28rpx;
		background-color: #fff;
		border-bottom: 1px solid #eaedec;
	}

.t-conversation-item-container {
  width: 100vw;
  height: 114rpx;
  background-color: #FFFFFF;
}
.result-type {
  margin-top:16rpx;
}
.t-conversation-item {
  width: 100vw;
  height: 114rpx;
  display: flex;
  left: 0;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.avatar-box{
  position: relative;
  display: inline-flex;
}
.t-conversation-item-avatar{
  position: relative;
  width: 72rpx;
  height: 72rpx;
  border-radius: 16rpx;
  /*padding-left: 40rpx;*/
  /*padding-right: 24rpx;*/
  /*padding-bottom: 28rpx;*/
  /*padding-top: 28rpx;*/
  margin: 0 14rpx 0 28rpx;
  overflow: auto;
}
.t-conversation-item-content-text {
	flex:1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 114rpx;
	border-bottom: 2rpx solid #EEF0F3;
	padding-right: 30rpx;
}
.t-conversation-item-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.tui-result-name {
	font-size: 32rpx;
	font-family: Adobe Heiti Std;
	font-weight: normal;
	color: #131313;
	line-height:30rpx;
	margin-left:24rpx;
}
.tui-result-message {
	font-size: 27rpx;
	font-family: Adobe Heiti Std;
	font-weight: normal;
	color: #98A0A1;
	white-space:nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-left:24rpx;
	width: 550rpx;
}
.message-time {
	font-size: 27rpx;
	font-family: Adobe Heiti Std;
	font-weight: normal;
	color: #CACECE;
}
</style>
